# 创建临时资源目录
New-Item -ItemType Directory -Force -Path "./tmp/elasticsearch/data"
New-Item -ItemType Directory -Force -Path "./tmp/elasticsearch/plugins"
New-Item -ItemType Directory -Force -Path "./tmp/kafka/data"
New-Item -ItemType Directory -Force -Path "./tmp/fluentd/collector/log"
New-Item -ItemType Directory -Force -Path "./tmp/filebeat/data"
New-Item -ItemType Directory -Force -Path "./tmp/filebeat-collector/data"
New-Item -ItemType Directory -Force -Path "./tmp/prometheus/data"
New-Item -ItemType Directory -Force -Path "./tmp/grafana/data"
New-Item -ItemType Directory -Force -Path "./tmp/beanstalkd/data"
New-Item -ItemType Directory -Force -Path "./tmp/db"

# 创建微服务日志目录
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/usercenter-api"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/usercenter-rpc"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/assistant-api"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/assistant-rpc"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/chat-rpc"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/chat-api"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/chat-jobs/batch-insert"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/aichat-rpc"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/rag-rpc"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/paperfile-rpc"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/paperfile-api"
New-Item -ItemType Directory -Force -Path "./tmp/app/logs/jobs/pdfparser-job"

Write-Host "所有目录已成功创建"
